<template>
    <div>
        <van-nav-bar :left-arrow="isBack" :title="title" />
        <van-tabbar v-show="isTabbar" v-model="active">
            <van-tabbar-item icon="info-o" to="/findJob">找工作</van-tabbar-item>
            <van-tabbar-item icon="records" to="/findWorker">找工人</van-tabbar-item>
            <van-tabbar-item icon="contact" to="/user">我的</van-tabbar-item>
        </van-tabbar>
        <router-view />
    </div>
</template>
<script>
    import { NavBar ,Tabbar, TabbarItem } from 'vant';
    export default {
        components: {
            [NavBar.name]: NavBar,
            [Tabbar.name]: Tabbar,
            [TabbarItem.name]: TabbarItem
        },
        data() {
            return {
                isBack:false,
                isTabbar:true,
                active: 0,
                title:'找工作',
            }
        }
    }
</script>
